package com.lingx.web;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lingx.service.ConfigService;
import com.lingx.web.core.FileUploadServer;
import com.lingx.web.core.ApiServer;

public class LingxApp {
	public static ApplicationContext SPRINGCONTEXT;

	public static void main(String[] args) {
		String configFile="spring.xml" ;
		if(args!=null&&args.length>0){
			configFile=args[0];
		}
		ApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] {configFile });
		SPRINGCONTEXT=context;
		

	}

}
